<?php
if (!defined('IN_MIGSYS')) exit;
if(!isset($migsys_root_path)) $migsys_root_path = './../';
require_once($migsys_root_path . 'includes/smarty/Smarty.class.php');

/**
* Base Template class. Smarty
* @author heekinho
*/
class Template extends Smarty {
	/**
	 * Contrói um template Smarty
	 * @author heekinho
	 * @param string $template_name
	 * @return Template
	 */
    public function Template($template_name){
        $this->Smarty();
		global $migsys_root_path;

		// Define os Paths
		$this->template_dir = $migsys_root_path . 'styles/' . $template_name . '/templates/';
		$this->compile_dir = $migsys_root_path . 'styles/' . $template_name . '/templates_c/';
		$this->config_dir = $migsys_root_path . 'includes/smarty/configs/';
		$this->cache_dir = $migsys_root_path . 'includes/smarty/';
		
		// Verificar depois
        $this->caching = false;
    }
	
}


?>